﻿using Ducu.GLB.Global;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ducu.SRV.ServiceInteface
{
    public interface ITaskService
    {
        ViewModel.Task.FulfilModel GetFulfil(int planId);
        void Fulfil(ViewModel.Task.FulfilModel model, int planId);
        IList<ViewModel.Task.Shared._DayModel> GetWeekChart(int planId);
        ViewModel.Task.Shared._TaskItemModel Get(int taskId);
        IList<ViewModel.Task.Shared._TaskItemModel> GetNeedAccept();
        IList<ViewModel.Task.Shared._TaskItemModel> GetNeedAccept(int planId);

        ViewModel.Task.HistoryListItemModel GetHistoryItem(int taskId);
        int GetCount(int planId);
        ViewModel.Task.HistoryListModel GetHistoryList(int planId, Pager pager);
        ViewModel.Task.HistoryMonthModel GetHistoryMonth(int planId, int year, int month);

        void DoAccept(ViewModel.Task.AcceptModel model);
        void Reply(int taskId, string content, bool applyAccept);

        void Leave(ViewModel.Task.Shared._TaskItemModel model, int planId);
    }
}
